package guiyou.sw.agrinfo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageView;
import android.widget.Toast;

public class InitActivity extends Activity implements Runnable {// implements
																	// OnClickListener
																	// {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.init);

		Thread thread = new Thread(InitActivity.this);
		thread.start();

		
	}

	public void run() {
		// TODO Auto-generated method stub
		try {
			Thread.sleep(3000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}finally{
			Intent intent = new Intent();
			intent.setClass(InitActivity.this, LoginActivity.class);
			startActivity(intent);
			InitActivity.this.finish();
		}
	}
}